//
//  TKSellerInformationListTableViewCell.m
//  Ticket
//
//  Created by 小禹宝宝 on 2017/10/28.
//  Copyright © 2017年 cy55. All rights reserved.
//

#import "TKSellerInformationListTableViewCell.h"
@interface TKSellerInformationListTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *pirceLabel;
@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;
@property (weak, nonatomic) IBOutlet UILabel *tapCountLabel;


@end
@implementation TKSellerInformationListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.headerImageView.layer.masksToBounds = YES;
    self.headerImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.pirceLabel.textColor = [BLColorConfig mainColor];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(TKGoodsItem *)model {
    _model = model;
    NSString *price;
    if (model.sell_type == 1) {
        price = [NSString stringWithFormat:@"￥%@",model.price];
    } else {
        price = [NSString stringWithFormat:@"￥%@起",model.min_price];
    }
    self.pirceLabel.text = price;
    self.titleLabel.text = model.title;
    [self.headerImageView sd_setImageWithURL:[NSURL URLWithString:model.headimg] placeholderImage:[UIImage imageNamed:@"weibo02"]];
}
@end
